package com.uneed.api.util;

import android.os.Parcel;
import android.os.Parcelable;

public class SimpleMsg  implements Parcelable {
  public static final Parcelable.Creator<SimpleMsg> CREATOR;
  private String content;
  private int flag;
  private int icon;
  private String title;

  static
  {
    CREATOR = new Parcelable.Creator<SimpleMsg>()
    {
      public SimpleMsg createFromParcel(Parcel paramParcel)
      {
        return new SimpleMsg(paramParcel);
      }

      public SimpleMsg[] newArray(int paramInt)
      {
        return new SimpleMsg[paramInt];
      }
    };
  }

  protected SimpleMsg()
  {
  }

  protected SimpleMsg(Parcel paramParcel)
  {
    this.title = paramParcel.readString();
    this.content = paramParcel.readString();
    this.icon = paramParcel.readInt();
    this.flag = paramParcel.readInt();
  }

  public SimpleMsg(String paramString1, String paramString2, int paramInt1, int paramInt2)
  {
    this.title = paramString1;
    this.content = paramString2;
    this.icon = paramInt1;
    this.flag = paramInt2;
  }

  public String content()
  {
    return this.content;
  }

  public int describeContents()
  {
    return 0;
  }

  public int flag()
  {
    return this.flag;
  }

  public int icon()
  {
    return this.icon;
  }

  public String title()
  {
    return this.title;
  }

  public String toString()
  {
    return this.title + " : " + this.content;
  }

  public void writeToParcel(Parcel paramParcel, int paramInt)
  {
    paramParcel.writeString(this.title);
    paramParcel.writeString(this.content);
    paramParcel.writeInt(this.icon);
    paramParcel.writeInt(this.flag);
  }

}
